import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
export default new Vuex.Store({
  state: {
    loading : false,
	cardInfo : {},
	orderInfo : {},
	getCode : false
  },
  getters : {
	getcardInfo (state) {
		return state.cardInfo
	},
	getOrderInfo (state) {
		return state.orderInfo
	}
  },
  mutations: {
	getNewCode (state,data) {
		state.getCode = data;
	},
    setLoading (state,request) {
		state.loading = request;
    },
	setcardInfo (state,data) {
		state.cardInfo = data;
	},
	setOrderInfo (state,data) {
		state.orderInfo = data;
	}
  },
  actions: {
  },
  modules: {
  }
})
